<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  
  <script >
    let arr1 = [1,3,5]
    let arr2 = [1,2,4,6]
    let arr3 = [...arr1,...arr2] 
    console.log(arr3);
    function sum(...number){
      return number.reduce((o,n)=>{
        return o + n
      })
    }

    console.log(sum(1,5,94));

    let obj1 = {name:'张三',age:500,sex:'男',children:{name:'小张三',age:3,sex:'男'}}
    let obj2 = {...obj1}
    console.log(obj1);
    obj2.name="王五"
    obj2.children.name="小王五"
    console.log(obj2);
  </script>
</body>
</html>